#include<iostream>
#include<signal.h>
#include<string>

int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        std::cout << "Usage" << argv[0] << " -<signum> <pid>" << std::endl;
        exit(1);
    }    
    int sig = atoi(argv[1] + 1);
    pid_t id = std::stoi(argv[2]);
    kill(id, sig);
    return 0;
}